virt: Support detection for ARM64 Hyper-V guests
authorBoqun Feng <boqun.feng@gmail.com>
Wed, 13 Oct 2021 03:32:09 +0000 (11:32 +0800)
committerAdrian Bunk <bunk@debian.org>
Sun, 25 Aug 2024 19:05:15 +0000 (22:05 +0300)
commit54f4ead04464da8acd434843563c41bbb0709225
treee67afff1d9cd899a067a7f58ab5e2a50f1525a37
parent2139b2e5271114352b98434f36db80e659e48d0b
virt: Support detection for ARM64 Hyper-V guests

The detection of Microsoft Hyper-V VMs is done by cpuid currently,
however there is no cpuid on ARM64. And since ARM64 is now a supported
architecture for Microsoft Hyper-V guests[1], then use DMI tables to
detect a Hyper-V guest, which is more generic and works for ARM64.

[1]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7aff79e297ee1aa0126924921fd87a4ae59d2467

(cherry picked from commit 506bbc8569014253ea8614b680ccbc4fc2513a87)

Gbp-Pq: Name virt-Support-detection-for-ARM64-Hyper-V-guests.patch
src/basic/virt.c